function Ankhy_Druid_2()
		
	--[[tblCat = {}
	tblBear = {}
	local x
	if # tblPGetMeleeEnemies > 0 then
		for x = 0, # tblPGetMeleeEnemies do
			local obj = tblPGetMeleeEnemies[x]
			if obj
			and obj:Exists()
			then
				ClearUnitID("Thrash_Unit")
				obj:SetAsUnitID("Thrash_Unit")
				local i
				-- Find BEAR Thrash
				for i = 1, 40 do
					local vUnit = {UnitDebuff("Thrash_Unit", i)}
					if vUnit[1] ~= nil
					and vUnit[1] == "Thrash"
					and vUnit[8] == "player"
					then
						if vUnit[11] == THRASH_BEAR then
							table.insert(tblBear, "Moo Cow")
						end
						if vUnit[11] == THRASH_FERAL then
							table.insert(tblCat, "Moo Cow")
						end
					end
				end
			end
		end
		if #tblCat < #tblPGetMeleeEnemies then
			-- Apply Cat thrash
			if not ccrPlayerHasBuff(CAT_FORM) then ccrCast(CAT_FORM) end
			if ccrPlayerHasBuff(CAT_FORM) then
				ccrCast(THRASH_FERAL)
			end
		end
		if #tblBear < #tblPGetMeleeEnemies then
			-- Apply Bear thrash
			if not ccrPlayerHasBuff(BEAR_FORM) then ccrCast(BEAR_FORM) end
			if ccrPlayerHasBuff(BEAR_FORM) then
				ccrCast(THRASH_BEAR)
			end
		end
	end]]--

	-- Autoaccept LFR invite
		AcceptProposal();

	if ccrValidTarget() and not ccrPlayerIsInCombat() and GetShapeshiftForm() == 3 and not ccrPlayerHasBuff("Savage Roar") then print("Ankhy") ccrCast("Savage Roar") return end
	if not ccrPlayerHasBuff(CAT_FORM)
	and not ccrPlayerHasBuff(BEAR_FORM)
	then
		ccrCast(CAT_FORM)
		return
	end
	
	if not (ccrPlayerHasBuff("Blessing of Kings") 
	or ccrPlayerHasBuff("Embrace of the Shale Spider") 
	or ccrPlayerHasBuff("Legacy of the Emperor") 
	or ccrPlayerHasBuff("Mark of the Wild"))
		then
			ccrCastBuffIfMissing("Mark of the Wild")
			return
	end
	
	if ccrPlayerHasBuff("Blessing of Protection") or ccrPlayerHasBuff("Hand of Protection")
		then
		SpellStopCasting()
		ccrCast("Tranquility")
		return
	end

	if ccrPlayerIsInCombat() then

	
			-- Interrupt
			if ccrSpellCanAttack("Skull Bash")
			and ccrTargetIsCastingOrChanneling()
			and ccrTargetIsInteruptable()
			then
				if ccrTargetIsCasting()
				and ccrTargetHasLeftOnCast(1)
				then
					ccrCastAttack("Skull Bash")
					return
				end
			end	
			-- Tiger's Fury
			if ccrPlayerEnergy() <= 35
				and not ccrPlayerHasBuff("Clearcasting")
				then
				ccrCast("Tiger's Fury")
				return
			end
			if ccrTargetIsBoss()
				and SpellIsReady("Berserking")
				and ccrPlayerHasBuff("Tiger's Fury")
				then
					ccrCast("Berserking")
				return
			end
			if ccrTargetIsBoss()
				and SpellIsReady("Berserk")
				and ccrPlayerHasBuff("Tiger's Fury")
				then
					ccrCast("Berserk")
				return
			end
			if ccrTargetIsBoss()
				and SpellIsReady("Force of Nature")
				and ccrPlayerHasBuff("Tiger's Fury")
				then
					ccrCast("Force of Nature")
				return
			end
			
			
		-- Ferocious Bite to refresh Rip
			if ccrTargetHealth() <= 25 then
					if ccrTargetHasMyDebuff("Rip")
						and ccrUnitHasMyDebuffDuration("target", "Rip") <= 3
						then
							ccrCastAttack("Ferocious Bite")
						return
						else
					if not ccrTargetHasMyDebuff("Rip")
						and ccrComboPoints() == 5
						then
							ccrCastAttack("Rip")
						return
					end
				end	
			end	

		
			-- Soul Swap
			if ccrTargetHasMyDebuff("Rip")
				and ccrTargetHasMyDebuff("Rake")
				and ccrSpellIsReady("Soul Swap")
				then
					local x
					if # tblPGetMeleeEnemies > 0 then
						for x = 0, # tblPGetMeleeEnemies do
							local obj = tblPGetMeleeEnemies[x]
							if obj
							and obj:Exists()
							then
								local vRake = select(8,obj:GetAura(GetSpellInfo(RAKE)))
								local vRip = select(8,obj:GetAura(GetSpellInfo(RAKE)))
							if SpellCanAttack("Soul Swap", obj)
							then
								obj:CastSpellByName("Soul Swap")
							end
						end
					end			
				end
			end	
			
			
			-- Dream of Cenarius
			if ccrComboPoints() >= 4
			and ccrPlayerHasBuff("Predatory Swiftness") or (ccrPlayerHasBuff("Predatory Swiftness") and ccrUnitBuffDuration("player", "Predatory Swiftness") <= 1.5)
				then 
				ccrCast("Healing Touch")
				return
			end
			
			
			-- Savage Roar
			if not ccrPlayerHasBuff("Savage Roar")
				and ccrTargetHasMyDebuff("Rip") and ccrUnitHasMyDebuffDuration("target", "Rip") >= 8 
				then 
				ccrCast("Savage Roar")
				return
			else
				if ccrPlayerHasBuff("Savage Roar") and ccrUnitBuffDuration("player", "Savage Roar") <= 3
					and ccrTargetHasMyDebuff("Rip") and ccrUnitHasMyDebuffDuration("target", "Rip") >= 8 
					then  
					ccrCast("Savage Roar")
					return
				end
			end	
			
			
			-- R.I.P
			if (ccrPlayerHasBuff("Dream of Cenarius") and ccrPlayerHasBuff("Tiger's Fury") and ccrComboPoints() == 5 
				or ccrPlayerHasBuff("Dream of Cenarius") and ccrPlayerHasBuff("Dextrous") and ccrComboPoints() == 5 
				or ccrPlayerHasBuff("Dream of Cenarius") and ccrPlayerHasBuff("Vicious") and ccrComboPoints() == 5
					and ccrComboPoints() == 5)
						then
						ccrCastAttack("Rip")
						return
			else	
					if not ccrTargetHasMyDebuff("Rip") and ccrComboPoints() == 5 or (ccrTargetHasMyDebuff("Rip") and ccrUnitHasMyDebuffDuration("target", "Rip") <= 5)
						and ccrComboPoints() == 5 and not ccrPlayerHasBuff("Predatory Swiftness")
							then
							ccrCastAttack("Rip")
							return
					end
				end
			
			
			--AOE       -- 3+
			if ccrPlayerCount(8) >= 2
				and SpellIsReady("Thrash")
				and not ccrTargetHasMyDebuff("Thrash")
				then
					ccrCastAttack("Thrash")
					return
				else
				if ccrPlayerCount(8) >= 4
					then
					ccrCastAttack("Swipe")
					return		
				end
			end	

			
			
			-- Rake
			if (ccrPlayerHasBuff("Dream of Cenarius") and ccrPlayerHasBuff("Tiger's Fury")
				or ccrPlayerHasBuff("Dream of Cenarius") and ccrPlayerHasBuff("Dextrous")
				or ccrPlayerHasBuff("Dream of Cenarius") and ccrPlayerHasBuff("Vicious"))
						then
						ccrCastAttack("Rake")
						return
			else	
					if not ccrTargetHasMyDebuff("Rake") or ccrTargetHasMyDebuff("Rake") and ccrUnitHasMyDebuffDuration("target", "Rake") <= 5
							then
							ccrCastAttack("Rake")
							return
					end
				end
			
			
			-- During berserk
			if ccrPlayerHasBuff("Berserk") then 
				if ccrTargetHasMyDebuff("Rip") and ccrUnitHasMyDebuffDuration("target", "Rip") > 3 and ccrPlayerHasBuff("Savage Roar") and ccrComboPoints() == 5 
					and ccrPlayerEnergy() >= 50
					then
					ccrCastAttack("Ferocious Bite")
					return
				end
					if not ccrComboPoints() == 5 
						then
						ccrCastAttack("Shred")
						return
					end
			end
			
			
			-- Ferocious Bite
			if ccrTargetHasMyDebuff("Rip")
				and ccrTargetHealth() <= 25
				and not ccrPlayerHasBuff("Predatory Swiftness")
				and ccrComboPoints() == 5
					then
					ccrCastAttack("Ferocious Bite")
					return
			end
			
			
			-- Thrash with Clearcasting
			if ccrPlayerHasBuff("Clearcasting")
				and not ccrTargetHasMyDebuff("Thrash") or ccrTargetHasMyDebuff("Thrash") and ccrUnitHasMyDebuffDuration("target", "Thrash") <= 3
					then
					ccrCastAttack("Thrash")
					return
			else
				if ccrTargetHasMyDebuff("Thrash") and ccrUnitHasMyDebuffDuration("target", "Thrash") <= 3
					and ccrPlayerEnergy() >= 90
						then
						ccrCastAttack("Thrash")
						return
			else 
					if ccrPlayerHasBuff("Berserk") and ccrComboPoints() == 5
						then
						ccrCastAttack("Thrash")
						return
					end
				end
			end
			
			
			-- Ferocious Bite
				if ccrTargetHasMyDebuff("Rip") and ccrUnitHasMyDebuffDuration("target", "Rip") >= 6 and ccrPlayerHasBuff("Savage Roar")
					and ccrComboPoints() == 5
					and ccrPlayerEnergy() >= 85
					and not ccrPlayerHasBuff("Predatory Swiftness")
						then
							ccrCastAttack("Ferocious Bite")
						return
				else
					if ccrTargetHasMyDebuff("Rip") and ccrPlayerHasBuff("Savage Roar") and (ccrPlayerHasBuff("Bloodlust") or ccrPlayerHasBuff("Time Warp"))
					and ccrComboPoints() == 5
					and ccrPlayerEnergy() >= 65
						then
							ccrCastAttack("Ferocious Bite")
						return
					end
				end
				
			-- Shred with Clearcasting or Berserk
			if ccrPlayerEnergy() == 98
				then
					ccrCastAttack("Shred")
				return
			else
				if ccrPlayerHasBuff("Clearcasting")
					then
						ccrCastAttack("Shred")
						return
				else
					if ccrPlayerHasBuff("Berserk")
						then
							ccrCastAttack("Shred")
						return
					else
						if (ccrPlayerHasBuff("Bloodlust") or ccrPlayerHasBuff("Time Warp"))
							then
								ccrCastAttack("Shred")
							return
						end
					end
				end
			end
			-- Mangle
			 if ccrPlayerEnergy() >= 90
				then
					ccrCastAttack("Mangle")
					return
			else
				if not ccrTargetHasMyDebuff("Rip")
					and not ccrComboPoints() == 5
						then
							ccrCastAttack("Mangle")
						return
				else
					if ccrTargetHasMyDebuff("Rip") and ccrUnitHasMyDebuffDuration("target", "Rip") <= 6 
						and not ccrComboPoints() == 5
							then
								ccrCastAttack("Mangle")
							return
					else
						if ccrComboPoints() == 0
							and not ccrPlayerHasBuff("Savage Roar") and ccrUnitHasMyDebuffDuration("player", "Savage Roar") <= 2
								then
									ccrCastAttack("Mangle")
								return
						end
					end
				end
			end
			if not ccrTargetHasDebuff("Weakened Armor")
				then
				ccrCastAttack("Faerie Fire")
				return
			end
		end	
	end